/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package animales;
/**
 *
 * @author COEV
 */
public class Terrestres extends Mamiferos{
    protected String familia;
    protected String habitat;
    
    public Terrestres(int numPa,String nom, String fa, String ha){
        super(numPa,nom);
        familia=fa;
        habitat=ha;
    }
    

    public String getFamilia() {
        return familia;
    }

    public void setFamilia(String familia) {
        this.familia = familia;
    }

    public String getHabitat() {
        return habitat;
    }

    public void setHabitat(String habitat) {
        this.habitat = habitat;
    }  
    public void modificar(int numPa, String nom){
        this.numPatas=numPa;
        this.nombre=nom;        
    }
    @Override
    public String imprimirInfo(){
       return this.getNombre()+" "+this.numPatas+" "+familia+" "+habitat; 
    }
}